﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class EmpleadoListado : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void grvEmpleados_CustomButtonCallback(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewCustomButtonCallbackEventArgs e)
    {
        if (e.ButtonID == "btnReestablecer")
        {
            int _EmpleadoId = (int)gvEmpleados.GetRowValues(e.VisibleIndex, "ID");
            Response.Redirect("ReestablecerContrasena.aspx?ID=" + _EmpleadoId.ToString());
            //ONTareaLineaDeTiempo.CambiarOrdenDeTarea(_TareaLineaDeTiempoId, ONTareaLineaDeTiempo.OrdenAccion.Subir);
            //gvTareasLineaDeTiempo.DataBind();
        }
        else if (e.ButtonID == "btnVerDetalles")
        {
            int _EmpleadoId = (int)gvEmpleados.GetRowValues(e.VisibleIndex, "ID");
            Response.Redirect("Empleado.aspx?ID=" + _EmpleadoId.ToString());            
        }
    }
}
